﻿namespace REVISIONMAX20
{
    using System;
    using System.ComponentModel;
    using System.Drawing;
    using System.Windows.Forms;
    using WeifenLuo.WinFormsUI.Docking;

    public class frmGroupList : DockContent
    {
        private UIHandler _uiHandler = null;
        private IContainer components = null;
        private MyGroupList myGroupList;

        public frmGroupList()
        {
            this.InitializeComponent();
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void frmGroupList_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                e.Cancel = true;
                base.Hide();
            }
        }

        private void frmGroupList_Load(object sender, EventArgs e)
        {
            this.UpdateViewer();
        }

        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.myGroupList = new REVISIONMAX20.MyGroupList();
            this.SuspendLayout();
            // 
            // myGroupList
            // 
            this.myGroupList.Dock = System.Windows.Forms.DockStyle.Fill;
            this.myGroupList.Location = new System.Drawing.Point(0, 0);
            this.myGroupList.Name = "myGroupList";
            this.myGroupList.Size = new System.Drawing.Size(449, 473);
            this.myGroupList.TabIndex = 0;
            this.myGroupList.uiHandler = null;
            // 
            // frmGroupList
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(449, 473);
            this.Controls.Add(this.myGroupList);
            this.Name = "frmGroupList";
            this.TabText = "Groups";
            this.Text = "Groups";
            this.Load += new System.EventHandler(this.frmGroupList_Load);
            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.frmGroupList_FormClosing);
            this.ResumeLayout(false);

        }

        public void UpdateViewer()
        {
            this.myGroupList.UpdateViewer();
        }

        public UIHandler uiHandler
        {
            get
            {
                return this._uiHandler;
            }
            set
            {
                this._uiHandler = value;
                this.myGroupList.uiHandler = value;
            }
        }
    }
}

